<template lang="pug">
  s-table.tabContent(
    ref="table"
    :column="tableObj.column"
    :filterProps="{items: filterItems}"
    :queryFn="tableObj.getList"
    title="套刷人员"
    )
    template(slot="action" slot-scope="scope")
      a(href="javascript:" @click="historyHandle(scope.id)") 以图搜图
</template>
<script>
import { STable, AImage, UploadFile } from '@/components'
import { getPersonList } from '@/api/libary'

const column = [
  {
    prop: 'idcard',
    label: '入库时间',
    align: 'center'
  },
  {
    prop: 'personId',
    label: '姓名',
    align: 'center'
  },
  {
    prop: 'name',
    label: '身份证',
    align: 'center'
  },
  {
    prop: 'birthday',
    label: '模板/建档照',
    align: 'center'
  },
  {
    prop: 'action',
    label: '操作',
    align: 'center'
  }
]

export default {
  components: {
    STable,
    AImage,
    UploadFile
  },
  computed: {
    filterItems () {
      return [
        {
          key: 'keywords',
          label: '关键信息'
        },
        {
          key: 'addDate',
          label: '入库时间',
          type: 'daterange'
        }
      ]
    }
  },
  data () {
    return {
      tableObj: {
        column,
        getList: getPersonList
      }
    }
  },
  methods: {
    // 查看预警记录
    historyHandle (id) {

    },
    // 列入违规人员库
    inBlack () {

    }
  }
}
</script>
